/**
 * 
 */
package com.ims.stocks.service.address;

import java.util.List;

import com.ims.common.service.BaseServiceImpl;
import com.ims.stocks.dao.address.AddressDAO;
import com.ims.stocks.dao.product.ProductDAO;
import com.ims.stocks.dao.user.UserDAO;
import com.ims.stocks.model.Address;

/**
 * @author Achal B.I
 *
 */
public class AddressServiceImpl extends BaseServiceImpl implements
		AddressService {

	public AddressDAO addressDAO;
	
	/* (non-Javadoc)
	 * @see com.ims.common.service.BaseServiceImpl#getServiceDAO()
	 */
	@Override
	public AddressDAO getServiceDAO() {
		
		return (AddressDAO) getBaseDAO();
	}

	/**
	 * @return the addressDAO
	 */
	public AddressDAO getAddressDAO() {
		return addressDAO;
	}

	/**
	 * @param addressDAO the addressDAO to set
	 */
	public void setAddressDAO(AddressDAO addressDAO) {
		this.addressDAO = addressDAO;
	}

	public List<Address> getAddressesOfPerson(int id){
		return addressDAO.getAddressesOfPerson(id);
	}
}
